package com.sgb.kjwl.model.entity.self;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.contrarywind.interfaces.IPickerViewData;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

public class CarriageSelectEntity implements IPickerViewData, MultiItemEntity, Serializable {
    @SerializedName("no")
    private String no;
    @SerializedName("name")
    private String name;
    @SerializedName("id")
    private String id;
    //多类型列表type
    private int type;

    public CarriageSelectEntity() {
    }

    public CarriageSelectEntity(int type) {
        this.type = type;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public String getPickerViewText() {
        return name;
    }

    @Override
    public int getItemType() {
        return type;
    }
}
